package de.bazinga.rotw.weapon.portal;

import java.util.Vector;


public class PortalList {
	private Vector<EntryPortal> portals = new Vector<EntryPortal>();
	
	private static PortalList instance = null;
	
	private PortalList() {
		
	}
	
	public static PortalList getInstance() {
		if(instance == null) instance = new PortalList();
		return instance;
	}
	
	public void addPortal(EntryPortal object) {
		portals.add(object);
	}
	
	public EntryPortal getPortal(int index) {
		return portals.get(index);
	}
	
	public Vector<EntryPortal> getPortals() {
		return portals;
	}
	
	public void clear() {
		portals.clear();
	}	
}
